import http from '@/utils/http'
import { goodsDetail, getGoodsFiles,goodsPage } from './sale'

/**
 * 获取商品详情
 * @param goodsPageData 
 * @param goodTypePage 
 */
export const getGoodsDetailAsyn = async (id: string,goodsPageData: any) => {
  return http.all(
    goodsDetail(id),
    getGoodsFiles(id),
    goodsPage(goodsPageData),
  )
}